package org.i1510.common.bean;

import java.util.HashMap;
import java.util.Iterator;

public class SpringQuartzPropertyBean {
	private String name;
	private String value;
	private HashMap ref = new HashMap();
	public SpringQuartzPropertyBean() {
		super();
	}
	
	
	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public HashMap getRef() {
		return ref;
	}


	public void setRef(HashMap ref) {
		this.ref = ref;
	}


	public String getValue() {
		return value;
	}


	public void setValue(String value) {
		this.value = value;
	}
	

	   /**
	*@Author Rambo
	*@Desc：<ref bean="XXX" />
	*@param bean TODO
	*@Version  SpringQuartzPropertyBean.java,v 1.1 2013-10-9 下午5:08:06 
	*/
	public void addRef(String bean) {
	       ref.put(bean, bean);
	   }

	public void print() {
	       System.out.println("SpringQuartzPropertyBean.name=" + name);
	       System.out.println("SpringQuartzPropertyBean.value=" + value);
	       
	       for(Iterator i = ref.keySet().iterator(); i.hasNext(); ) {
	           String bean = (String) i.next();
	           String bean1 = (String) ref.get(bean);	           
	           System.out.println("  SpringQuartzPropertyBean.ref[bean]:(" + bean + ") = " + bean1);
	       }
	       
	   }
}
